<?php
session_start();
include_once('includes/db.php');
$id=$_POST['id'];
$title=$_POST['title'];
$article=$_POST['article'];
$str="UPDATE `article` SET `title`='$title',`article`='$article' WHERE `id`=$id";
$result=mysql_query($str);
if($result)
{
	header('location:article.php');
}
else 
{
    echo "Some error ccured";	
}
?>